<template>
  <div>
    <h1>App</h1>
    <div v-show="flagS">我是v-show</div>
    <button @click="flagS = !flagS">切换v-show</button>
    <div v-if="flagI">我是v-if</div>
    <button @click="flagI = !flagI">切换v-if</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      flagS: true,
      flagI: true,
    };
  },
};
</script>

<style>
</style>